<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小组成员弹窗</title>
    <link rel="stylesheet" href="./lib/bootstrap-3.4.1-dist/css/bootstrap.css">
    <script src="./lib/bootstrap-3.4.1-dist/js/jquery.min.js"></script>
    <script src="./lib/bootstrap-3.4.1-dist/js/bootstrap.js"></script>
</head>

<body>
    <!-- 杨辉小组 -->
    <div class="modal fade" tabindex="-1" role="dialog" id="tangdejiang">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">唐德江</h4>
                </div>
                <div class="modal-body">
                    <p>我做的模态框</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary">Save changes</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

    <div>
        <!-- //按下按钮显示你们的名字 -->
        <h1>弹窗</h1>
        <button type="button" class="btn btn-danger" id="1">唐德江</button>
        <button type="button" class="btn btn-info" id="2">戚耀华</button>
        <button type="button" class="btn btn-default" id="3">黄曼怡</button>
        <button type="button" class="btn btn-success" id="4">杨辉</button>
        <button type="button" class="btn btn-warning" id="5">陈志豪</button>
        <button type="button" class="btn btn-primary" id="6">梁伟远</button>
        <button type="button" class="btn btn-primary" id="showBtn">演示代码</button>
    </div>

    <script>
        //显示模态框   $('#myModal').modal(options)
        // $('#tangdejiang').modal("show")
        $(function () {
            $('.modal-footer button').eq(0).html('关闭')
            $('.modal-footer button').eq(1).html('保存')
            //模态框编写 start//
            $('#1').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('唐德江')
                //更改描述
                $('.modal-body p').html('我做的模态框')
            })
            //保存按钮
            $('.modal-footer button').eq(1).click(function () {
                //关闭模态框
                $('#tangdejiang').modal("hide")
            })
            //模态框编写 end//
            //后面接着写你们的模态框
            $('#4').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('杨辉')
                //更改描述
                $('.modal-body p').html('我是菜鸡')
            })
            $('#3').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('manyiiiiiiiii')
                //更改描述
                $('.modal-body p').html('我是yyyyyy')
            })
            $('#2').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('戚耀华')
                //更改描述
                $('.modal-body p').html('我是大帅 ')
            })
            $('#5').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('无情阿三')
                //更改描述
                $('.modal-body p').html('我是调情辉 ')
            })

            $('#6').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('梁伟远')
                //更改描述
                $('.modal-body p').html('梁伟远 ')
            })
            //演示代码 要完成的模块
            $('#showBtn').click(function () {
                //开启模态框
                $('#tangdejiang').modal("show")
                //更改标题
                $('.modal-title').html('Jack')
                //更改描述
                $('.modal-body p').html('我是演示代码，模块已完成 ')
            })
        })


    </script>
</body>

</html>